package cn.jlkj.demo1.beans;

import org.springframework.stereotype.Component;

@Component
public class Axe {

    private String name;

    public Axe(){
        name = "斧子";
        System.out.println("创建了一个斧子");
    }

    @Override
    public String toString() {
        return name;
    }
}
